import {Base64 } from 'great-jsutils';
function isBase64(str) {
    if(str){
        const base = new Base64();
        return str === base.encode(base.decode(str))
    }else{
        return false;
    }
}
function decode(str){
    const base64str = Base64.decode(str);
    return base64str;
}
function encode(str){
    const base64str = Base64.encode(str);
    return base64str;
}
const base64Utils = {
    Base64,isBase64,encode,decode
};
export {
    base64Utils
}
